package net.k3rnel.abugadro.gcodes;

import net.k3rnel.abugadro.providers.ExternalContentProvider;
import android.net.Uri;
import android.provider.BaseColumns;

public class Label {

	public Label() {
	}

	public static final class Labels implements BaseColumns {
		private Labels() {
		}

		public static final Uri CONTENT_URI = Uri.parse("content://"+ ExternalContentProvider.AUTHORITY + "/projects/*/issues/*/labels");

		public static final String CONTENT_TYPE_DIR = "vnd.android.cursor.dir/vnd.abugadro.labels";
		public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/vnd.abugadro.labels";

		public static final String _ID = "_id";
		public static final String PROJECT_ID = "project_id";
		public static final String ISSUE_ID = "issue_id";
		public static final String LABEL = "label";
		
		public static final String DEFAULT_SORT = LABEL + " ASC";
		
		/** Build {@link Uri} for requested {@link #_ID}. */
        public static Uri buildUri(String labelId) {
            return CONTENT_URI.buildUpon().appendPath(labelId).build();
        }
	}

}